﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SuperJoe.Framework.Core.Exceptions
{
    [Serializable]
    public class UserFriendlyException : SuperJoeException
    {
        public UserFriendlyException() { }
        public UserFriendlyException(string message) : base(message) { }
        public UserFriendlyException(string message, Exception inner) : base(message, inner) { }
        protected UserFriendlyException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context) : base(info, context) { }

        public string FriendlyMessage { get; set; }

        public override string ToString()
        {
            return FriendlyMessage + "-->" + base.ToString();
        }
    }
}
